package com.qwert.shortlink.project.common.convention.error;

/**
 * @author qwert
 * @version 1.0.0
 * @create 2024/7/6 11:20
 **/
public enum LinkErrorCode implements IErrorCode {
    LINK_NULL_ERROR("A000300", "链接访问为空"),
    LINK_INVALID_ERROR("A0003001", "访问链接无效"),
    LINK_DELETED_ERROR("A0003002","访问链接已失效"),
    LINK_ROUTER_NULL_ERROR("A0003003","链接查询错误1（路由表错误）"),
    LINK_SHORT_LINK_NULL_ERROR("A0003004","链接查询错误2（链接表错误）");

    private final String code;

    private final String message;

    LinkErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
